﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Test_QianBZ.Models;
using Test_QianBZ.Repository;

namespace Test_QianBZ.Domain
{
    public class FoodDomain
    {
        public List<FoodModel> GetMenu()
        {
            return (new FoodRepository()).GetMenu();
        }

        public FoodModel GetFood(int foodId)
        {
            return (new FoodRepository()).GetFood(foodId);
        }

        public int AddFood(string foodName)
        {
            return (new FoodRepository()).AddFood(foodName);
        }

        public int EditFood(FoodModel food)
        {
            return (new FoodRepository()).EditFood(food);
        }
    }
}
